package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.GoodsTransBill;
import com.weixing.mall.provider.model.dto.ChgTransStatusDto;
import com.weixing.mall.provider.model.query.GoodsTransBillQuery;
import com.weixing.mall.provider.model.vo.GoodsTransBillListVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* Created by Mybatis Generator on 2019/09/29
*/
@Repository
public interface GoodsTransBillMapper extends BaseMapper<GoodsTransBill> {

   IPage<GoodsTransBillListVo> selectListOfPage(@Param("pg") Page page, @Param("qs")GoodsTransBillQuery goodsTransBillQuery,@Param("array") List<Long> ids);

    void chgTransStatus(@Param("qs")ChgTransStatusDto chgTransStatusDto);

    GoodsTransBillListVo getGoodsTransBillById(long id);

    GoodsTransBill selectMaxId();

}